package com.youkeyi.ddy.cloud.common.api.application.business.crm.supplier;

import com.youkeyi.ddy.cloud.common.api.application.business.crm.supplier.dto.BusinessSupplierListCloudDto;
import com.youkeyi.ddy.cloud.common.api.application.business.crm.supplier.param.BusinessSupplierCreateCloudParam;
import com.youkeyi.ddy.cloud.common.api.application.business.crm.supplier.param.BusinessSupplierDeleteCloudParam;
import com.youkeyi.ddy.cloud.common.api.application.business.crm.supplier.param.BusinessSupplierListCloudParam;
import com.youkeyi.ddy.cloud.common.api.application.business.crm.supplier.param.BusinessSupplierUpdateCloudParam;
import com.youkeyi.ddy.cloud.common.response.ResponseContent;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * BusinessSupplierCloudServiceFallback
 *
 * @Author liuxiawang
 * @Date 1/28/22 4:12 PM
 * @Location shenzhen.china
 */
@Component
@RequestMapping("/business/supplier/fallback")
public class BusinessSupplierCloudServiceFallback implements BusinessSupplierCloudService {

    @Override
    public BusinessSupplierListCloudDto list(BusinessSupplierListCloudParam param) {
        return new BusinessSupplierListCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent create(BusinessSupplierCreateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent update(BusinessSupplierUpdateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent delete(BusinessSupplierDeleteCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }
}
